import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import getters from './getters'
import mutations from './mutations'
import actions from './actions'
import modules from './modules'

export default new Vuex.Store({
  state: {
    isCollapse: false,
    item: [],
    currentItem: null,
    tabList: [
      {
        path: '/main/home',
        name: 'home',
        title: '首页',
        icon: 'home'
      }
    ]
  },
  getters,
  mutations,
  actions,
  modules,
})
